import { createStore } from '@/airstore';
import ApiClient from '@/services/apiClient';

export default createStore({
  namespace: 'AviatMaintain',
  async getAirports() {
    const arsRes = await ApiClient.post('zoController/v1/getAllAirportInUse', {
      loginUser: '',
    });
    return arsRes.data || [];
  },
  async getAirplaneRegs() {
    const arrRes = await ApiClient.post('zoController/v1/getAllUserAc', {
      loginUser: '',
    });
    return arrRes.data || [];
  },
});
